package cn.caipengbo.jdbc;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Myth on 2/9/2017.
 */
public class PersonDaoTest {
    @Test
    public void testSavePerson() {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        PersonDao personDao = (PersonDao) context.getBean("personDao");
        personDao.savePerson("insert into tb_person(name) values('Test2')");
    }
}